-
Notifications
You must be signed in to change notification settings - Fork 28
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
fix(dasboards): remove deleted dashboards from users list #1182
Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## main #1182 +/- ##
==========================================
- Coverage 52.44% 52.41% -0.04%
==========================================
Files 557 557
Lines 19421 19433 +12
==========================================
Hits 10185 10185
- Misses 8670 8682 +12
Partials 566 566
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Question: do you think it's a better idea to make the user updates after the deletion of the dashboard? Say the DB call fails for whatever reason, it may be a better experience for the dashboard reference to still exist on the user object if the delete fails.
Dashboard ID's for deleted dashboards need to also be deleted from a user's dashboard list, as they would continue to count towards a user's total dashboard count otherwise.